package com.knight.concurrent.chapter11;

/**
 * @Description:
 * @author: knight
 * @Date: 2019-03-11 19:56
 */
public abstract class ObServer {

    protected Subject subject;

    public ObServer(Subject subject) {
        this.subject = subject;
        subject.attach(this);
    }

    /**
     * 通知方法
     */
    protected abstract void update();


}
